﻿//
// Created by Administrator on 2020/8/21.
//

#ifndef EXAMPLE_CPP_TIME_H
#define EXAMPLE_CPP_TIME_H

#include <iostream>

class Time {
private:
    int timeInMinute;
public:
    void show();

    Time operator+(const Time &time);

    Time();

    Time(int timeInMinute);

    Time operator+(int minute);


    explicit operator int() const;

    friend Time operator+(int minute, Time &time);

    friend std::ostream &operator<<(std::ostream &os, const Time &time);
};


#endif //EXAMPLE_CPP_TIME_H
